home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / tex-k-archive.gz / tex-k-archive / 000202_kb@cs.umb.edu_Mon Jan 31 07:37:08 1994.msg < prev    next >
Internet Message Format  |  1994-10-11  |  1KB

  1. Received: from ra.cs.umb.edu by cs.umb.edu with SMTP id AA15404
  2.   (5.65c/IDA-1.4.4 for <tex-k-exp@cs.umb.edu>); Mon, 31 Jan 1994 12:37:09 -0500
  3. Received: by ra.cs.umb.edu id AA01721
  4.   (5.65c/IDA-1.4.4); Mon, 31 Jan 1994 12:37:08 -0500
  5. Date: Mon, 31 Jan 1994 12:37:08 -0500
  6. From: "K. Berry" <kb@cs.umb.edu>
  7. Message-Id: <199401311737.AA01721@ra.cs.umb.edu>
  8. To: karl@cs.umb.edu, tex-k@cs.umb.edu
  9. Subject: patch for kpathsea core dumps
  10.  
  11.  
  12. Well, this was certainly an embarrassing error.
  13. I hope this fixes the core dumps, with or without GNU malloc.
  14.  
  15. It will be a few days (at least) before I make an updated release.
  16.  
  17. *** /tmp/fn.c    Mon Jan 31 12:01:05 1994
  18. --- fn.c    Mon Jan 31 12:06:15 1994
  19. ***************
  20. *** 42,48 ****
  21.   {
  22.     fn_type ret;
  23.     
  24. !   FN_ALLOCATED (ret) = CHUNK_SIZE;
  25.     FN_STRING (ret) = xmalloc (FN_ALLOCATED (ret));
  26.     
  27.     strncpy (FN_STRING (ret), s, len);
  28. --- 43,49 ----
  29.   {
  30.     fn_type ret;
  31.     
  32. !   FN_ALLOCATED (ret) = CHUNK_SIZE > len ? CHUNK_SIZE : len;
  33.     FN_STRING (ret) = xmalloc (FN_ALLOCATED (ret));
  34.     
  35.     strncpy (FN_STRING (ret), s, len);